Skip to content

Field test: app matrix templates, Connect command log, and findings output - #515

Merged
ejntaylor merged 2 commits into
mainfrom
field-test-app-matrix
Nov 23, 2026
Merged

ejntaylor merged 2 commits into
mainfrom
field-test-app-matrix

Conversation

@ejntaylor

Copy link
Copy Markdown
Member

Extends the field-test harness so it can run an agent through the install on a wider range of apps, and report what went wrong in a form that can be compared across runs.

What changes

  • App templates: static-html (no package.json), cdn-script (browser JavaScript from a CDN, no package manager), eleventy-npm (JavaScript only at build time; the layout is _includes/base.njk) and flask (Python, not JavaScript).
  • Template profiles: each template's entry in TEMPLATE_INFO names:
    • its shell file;
    • the checks that cannot apply to it, which are printed as – and left out of the total;
    • whether a correct run installs Connect at all.
  • installAvoided check: only for apps Connect does not support. It passes when the agent leaves the app unchanged and provisions no site.
  • Connect command log: an npx wrapper first on the agent's PATH records each Connect command the agent runs, with its output and exit code, under cli/ and in cli-commands.json. Commands that don't mention Connect go straight to the real npx.
  • findings.jsonl per attempt: one entry per failed applicable check, plus one per non-empty HESITATIONS or UX FRICTION section of the agent's report, keyed by signature so runs can be merged.
  • One-line prompt variant: field-test/prompts/one-liner.txt. prompt.txt is unchanged.
  • Agent environment:
    • The agent no longer inherits host identity (AMP_*, variables containing EMAIL, Git author and committer). Agents read their environment while deciding whether to trust an install, and an email there tells them they are being tested.
    • Each attempt gets its own TMPDIR, so cells can run side by side.

Verification

  • npm test: all tests pass, including new cases for:
    • the profile shell and not-applicable scoring;
    • installAvoided;
    • findings.jsonl output.
  • Ran the scripted stub (stub-compliant.mjs) on every template. On lovable-bun it scores the same before and after this change.
  • Ran one real agent round per new template with the one-line prompt. Each wrote cli-commands.json and findings.jsonl.

…utput

Adds static HTML, CDN script, Eleventy and Flask templates with per-template
profiles (shell file, checks that cannot apply, whether Connect should be
installed). Not-applicable checks are left out of the score, and an
unsupported app is scored on being left unchanged.

Each attempt now records the Connect commands the agent ran, with output and
exit code, and writes findings.jsonl from failed checks and the agent's
reported friction. The agent's environment no longer carries host identity,
and each attempt has its own TMPDIR. Adds a one-line prompt variant.

Amp-Thread-ID: https://ampcode.com/threads/T-01a2094e-3865-75b0-b55f-a3773c5b9988
Co-authored-by: Elliot Taylor <elliot.t@patchstack.com>
@coderbuds

coderbuds Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

🎯 Excellent quality (85%) — Adds a template matrix, command log, and findings output with focused tests and clear documentation.

📦 Large, but within your team's limit — 395 lines changed, under your team's 400-line limit.

🤖 Written by Amp — going by its own attribution. Unknown whether a person read it; agents can report that with the report-ai-usage-tool tool.

🟠 Elevated risk — 274 lines of code, more than an AI review is trusted with (200).

✅ Reviewed — approved by @daniloradovic.

🩺 Coderbuds triage found nothing that should stop this merge, but worth a look: filters host identity env vars without any test coverage in field-test/agent.mjs, with no test in this change; builds new templates, including an npm install for eleventy, without tests in field-test/fixture.mjs, with no test in this change. It only counts on Minimal or Low risk changes of up to 50 lines of code, so this one needs the review above.

See how your team is trending →

The log ID used date +%s%N, which has no nanoseconds on macOS, so two
commands in the same second overwrote each other's records. The ID is now
the time in milliseconds from node plus the wrapper's process ID. Adds a
test of the wrapper's pass-through and recording.

Amp-Thread-ID: https://ampcode.com/threads/T-01a2094e-3865-75b0-b55f-a3773c5b9988
Co-authored-by: Elliot Taylor <elliot.t@patchstack.com>

Copy link
Copy Markdown
Member Author

/review

@ejntaylor
ejntaylor merged commit 6ed60b8 into main Nov 23, 2026
28 checks passed
@ejntaylor
ejntaylor deleted the field-test-app-matrix branch November 23, 2026 20:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants